<template>
<div class="job_detail">
	<div class="midContent">
	        <article class="operate-box">
	            <div class="operate-info-e">
	                <div class="pull-left">
	                    <div class="title">
	                        资深电工
	                        <span class="icon-bao"></span>
	                        <div>家政维修 | 计时 | 20人 | 女</div>
	                        <div class="waring-color">100<span>元/天</span></div>
	                    </div>
	                </div>
	                <div class="pull-right">
	                    <div id="headerLogo">
	                        <img src="static/images/banner0.png"  ondragstart="return false;"/>
	                    </div>
	                    <div></div>
	                    <div>诚信值：<span class="">36.5</span></div>
	                </div>
	            </div>
	        </article>
	        <article class="operate-box">
	            <div class="operate-info-e" style="padding: 0px 2%;">
	                <ul class="orderContent">
	                    <li>
	                        <p class="p_title">
	                            干活时间
	                        </p>
	                        <div class='div_separate'>
                                <ul >
                                    <li class="time_separate"  v-for="(item,index) in navlist" :class="{current: flag == index}" >
                                        {{item.nav}}
                                        <span>{{item.time_se}}</span>
                                    </li>
                                </ul>
	                        </div>
	                        <div class="time_point">
	                            <span></span><span class="span_line"></span><span></span>
	                            <ul class="time_line"><li>2018.2.18</li><li>2018.2.18</li><li>2018.2.18</li></ul>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="left">
	                            干活地址
	                        </div>
	                        <div class="right">
	                            <div><span class="icon-common icon-addr"></span>真北路附近10公里</div>
	                            <div><span class="icon-common icon-distance"></span>距离 3.12km</div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="left">共需要</div>
	                        <div class="right">
	                            <div>8</div>
	                            <div>还差3人</div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="left">已接单</div>
	                        <div class="right">
	                            <div>8</div>
	                        </div>
	                    </li>
	                </ul>
	            </div>
	        </article>
	        <article class="operate-box">
	            <div class="operate-info-e">
	                <div class="operate-desc">
	                    <div class="title">对TA的要求</div>
	                    <div class="z_content">
	                       对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他的要求，对他
	                    </div>
	                    <p class="zhan"><img src="static/images/down.png" alt=""><span>展开</span></p>
	                </div>
	            </div>
	        </article>
	        <article class="operate-box">
	            <div class="operate-info-e">
	                <div class="operate-desc">
	                    <div class="title">详情描述</div>
	                    <div class="z_content">
	                        1.预约维修后家急哥师傅会在1小时内联系客户，与客户就需
	                        要维修、安装的物品情况进行电话沟通，以确定是否需要携
	                        带零配件，上门服务时间等相关消息。
	                        <br/>
	                        2.家急哥师傅上门携带专业的工具，按照指定地点进行检测、
	                        维修、安装。
	                    </div>
	                </div>
	            </div>
	        </article>
	        <article class="operate-box">
	            <div class="operate-info-e">
	                <ul class="pic_show">
	                    <li v-for="(value,index) in imgList"><img :src="value"  :key="value" @click="bigImg(index)"></li>
	                </ul>
                    <div class="imgMask" v-if="showBigImg" @click.stop="showBigImg=!showBigImg">
                        <!-- <img class="prev"  @click.stop="prev" src="static/images/banner0.png"> -->
                        <div class="showImg" >
                            <img class="bigImg" :src="imgList[num]">
                        </div>
                        <!-- <img class="next"  @click.stop="next" src="static/images/banner0.png"> -->
                    </div>
	            </div>
	        </article>
	        <article  class="operate-box">
	            <div class="operate-info-e">
	                <div class="operate-desc">
	                    <div class="title">用工企业</div>
	                    <div class="qiye_news">
	                        <img src="static/images/a.jpg" alt="">
	                        <div>北京没事财富有限公司<span>诚信值 <i>36.5</i></span></div>
	                    </div>
	                </div>
	            </div>
	        </article>
	        <p class="tip">
	            警示：所有零工不会收取任何费用，若被要求缴纳押金等费用，请提高警惕！
	        </p>
	</div>
	<div class="footer">
		<div class="fenxiang"><i class="iconfont icon-share"></i></div>
		<div @click="showDetail">立即接单</div>
	</div>
    <div class="bg_ground" v-show="detailsShow">
            <div class="tan">
               <span class="close" @click="closeShow">&times;</span>
               <div class="operate-info-e operate-info-time">
                    <ul class="orderContent">
                        <li>
                            <p class="p_title">
                                干活时间
                            </p>
                            <div class='div_separate'>
                                <ul>
                                    <li class="time_separate"  v-for="(item,index) in navlist" :class="{current: flag == index}" @click="flag=index">
                                        {{item.nav}}
                                        <span>{{item.time_se}}</span>
                                    </li>
                                </ul>
                            </div>
                        </li>
                    </ul>
                     <div class="oby">
                         <label for="oby">服从调配</label>
                        <input type="radio" name="sex" id="oby" checked="checked">
                     </div>
                     <div><button type="button" class="getorder" @click="getorder">立即接单</button></div>
                </div>
            </div>
        </div>
    <logingShade v-show="login"></logingShade>
</div>
</template>

<script>
export default {
    name: 'job_detail',
     data(){
    	return{
        flag:0,
        login:false,
        showBigImg:false,
        detailsShow:false,
        num:0,
        active:false,
        imgList:[
            "./static/images/banner0.png",
            "./static/images/banner1.png",
            "./static/images/banner0.png"
        ],
        navlist:[
            {
                nav:'早班',time_se:"08:00-12:00"
            },
            {
                nav:'中班',time_se:"08:00-12:00"
            },
            {
                nav:'晚班',time_se:"08:00-12:00"
            },
        ]
    		// mySwiper:"",
    		// banner:["./static/images/detailban1.png","./static/images/1.jpg","./static/images/detailban2.png"]

    	}
    },
    mounted(){
    	/*this.mySwiper = new Swiper('.swiper-container', {
							loop: true,
							pagination: '.swiper-pagination',  // 分页器
							// autoplay: 2000,
							paginationClickable: true
						});*/
       
    },
    methods:{
       getorder(){
            this.$router.push('/login');
        },
       loging(){
           this.login = true;
       },
       showDetail(){
            this.detailsShow = true;
       },
       closeShow(){
            this.detailsShow = false;
       },
       bigImg(index){
            this.showBigImg = true;
            this.num = index;
       },
        prev(){
            if(this.num == 0){
                this.num = 3;
            }
            this.num--;
            console.log(this.num);
        },
        acitve(index){
            this.acitve = true;
        },
        next(){
            if(this.num == 2){
                this.num =-1;
            }
            this.num++;
        }
    }
}
</script>

<style scoped>
.job_detail{
	background-color: #F7F7F7;
	padding-bottom: 60px;
    width: 100%;
    height: 100%;
}
/*任务详情*/
.operate-header {
    position: relative;
    z-index: 4;
}

.operate-tips {
    width: 92%;
    background: #ffb452;
    color: #ffffff;
    padding: 4px 2%;
    margin: 0px auto 8px;
    border-radius: 4px;
    font-size: 0.6em;
    text-align: left;
    overflow: hidden;
}

.operate-tips span {
    font-size: 1.6em;
    position: absolute;
    right: 4%;
    top: 1px;
    width: 22px;
    text-align: right;
    height: 22px;
}

.operate-box {
    width: 100%;
    margin: 0px auto 12px;
    background: #ffffff;
}
.midContent{
}
.operate-info-e {
    padding: 6px 2%;
    overflow: hidden;
    line-height: 1.6;
    margin: 0px auto;

}
.operate-info-e div.pull-right {
    width: 24%;
    float: right;
    text-align: center;
    overflow: hidden;
    line-height: 2.1em;
}
.operate-info-e div.pull-right .gray-color {
    font-size: 0.8em;
}
.operate-info-e div.pull-right #headerLogo {
    width: 3.2em;
    height: 3.2em;
    border-radius: 50%;
    overflow: hidden;
    margin: 0px auto;
    border: 1px solid #ffa200;
}
.operate-info-e div.pull-right div:last-child{
font-size: .58em;
    /* color: #999999; */
    border-radius: 30px 10px 30px 10px;
    background: #ffca3d;
    height: 1.24rem;
    color: #fff;
    width: 5.2rem;
    line-height: 1.24rem;
    margin: 0 auto;
}

.operate-info-e div.pull-left {
    width: 64%;
    float: left;
    line-height: 1.8;
    text-align: left;
}

.operate-info-e div.pull-left .title {
    font-size: 1.2rem;
}
.icon-bao{
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('/static/images/bao.png') no-repeat center;
    background-size: 100%;
    position: relative;
    z-index: 2;
    top: .2em;
}
.operate-info-e div.pull-left .title .waring-color {
    font-size: 1.3em;
    color: #e91717;
    font-weight: 600;
}
.operate-info-e div.pull-left .title .waring-color span{
    font-size: .6em;
    padding-left: 0.4em;
    margin-top: -.8em;
    display: inline-block;
    font-weight: normal;
}
.operate-info-e div.pull-left .title div:first-of-type{
    font-size: .8em;
    color: #999999;
}
.operate-info-e div.pull-left .center {
    font-size: 0.8em;
}
.operate-info-e div.pull-left .center i {
    color: #e6e6e6;
}
.operate-info-e div.pull-left .center i.icon-star {
    color: #ffb452;
}

.operate-info-e div.pull-left .center {
    color: #888888;
    font-size: 0.8em;
}
.operate-desc{
    color: #999999;
    font-size: .9em;
    line-height: 1.6em;
}
.operate-desc .title{
    color: #333333;
    font-size: 1rem;
    margin-bottom: 6px;
}
.btn-operate {
    background: #ffffff;
    overflow: hidden;
}
.orderContent{}
.orderContent li{
    list-style: none;
    border-bottom: 1px solid #f2f2f2;
    font-size: .9em;
    overflow: hidden;
    padding: 2px 0px;
    opacity: .8;
}
.orderContent li .left{
    float: left;
    width: 20%;
    color: #333333;
    line-height: 52px;
}
.orderContent li .right{
    float: right;
    width: 80%;
    color: #999999;
    text-align: right;
}
.orderContent li:first-of-type{
    line-height: 26px;
}
.orderContent li .right div:first-of-type{
    margin-top: .1em;
}
.orderContent li:last-of-type .right{
    line-height: 52px;
}
.orderContent li .right img{
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 50%;
    vertical-align: middle;
    margin-top: -4px;
}
.icon-common{
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    z-index: 2;
    top:6px;
    margin-right: 4px;
}
.icon-addr{
    background: url("/static/images/dqwz.png") no-repeat center;
    /*background: url('/assets/images/dqwz.png') center;*/
    background-size: 100%;
}
.icon-distance{
    background: url("/static/images/addr.png") center;
    background-size: 100%;
}

/**/
.p_title{
    width: 100%;
    clear: both;
        padding-bottom: 10px;
            font-size: 1rem;
}
.orderContent li.time_separate{
    width: 28%;
    float: left;
    text-align: center;
    background: #ffca3d;
    color: #fff;
    border-radius: 6px;
    line-height: 20px;
    padding: 2px 0;
   margin-left: 8%;
   font-size: 0.9rem;

}
.orderContent ul li.time_separate:nth-child(1){
    margin-left: 0;
}
.orderContent ul li.time_separate:nth-child(2){
    background: #98cafd;
}
.orderContent ul li.time_separate:nth-child(3){
    background: #8ba9ed;
}
.orderContent li.time_separate span{
    display: block;
}
.orderContent li .div_separate {
    float: right;
    width: 100%;
    color: #999999;
    text-align: right;
        padding-bottom: 10px;
}
.orderContent .time_point span {
    padding: 8px;
    background: #ffca3d;
    border-radius: 100%;
    display: inline-block;
    float: left;
    position: relative;
        margin-left: 7%;
}
.orderContent .time_point span.span_line {
    background: url(/static/images/line.png) no-repeat center;
    background-size: 100%;
    display: block;
    width: 61%;
    margin: 0 3%;
}
.orderContent .time_point span>div{
        position: absolute;
    top: 1.6rem;
}
.orderContent .time_point .time_line{
        clear: both;
        padding-top: 1%;
}
.orderContent .time_point .time_line li{
        width: 33%;
    float: left;
    color: #999;
}
.orderContent .time_point .time_line li:nth-child(1){
 text-align: left;   
}
.orderContent .time_point .time_line li:nth-child(2){
 text-align: center;   
}
.orderContent .time_point .time_line li:nth-child(3){
 text-align: right;   
}

/*展开*/
.zhan{
    text-align: center;
    cursor: pointer;
}
.zhan img{
    width: 0.88rem;
    margin-right: 0.1rem;
}
.z_content{
        overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
        line-height: 1.68rem;
}
.pic_show{

}
.pic_show li{
    width: 32.2%;
    float: left;
    margin-right: 1%;
}
.pic_show li:nth-child(1){
    margin-left: 0.3%;
}
.pic_show li img{
    width: 100%;
    float: left;
}
.tip{
	color: #999;
	margin: 2%;
	font-size: 0.88rem;
}
.qiye_news img{
    width: 3rem;
    border-radius: 100%;
    height: 3rem;
    float: left;
}
.qiye_news div{
    margin-left: 3.4rem;
    font-size: 1rem;
    color: #333;
    margin-top: 0.8rem;
}
.qiye_news div span{
    display: block;
    font-size: 1rem;
    color: #999;
}

.qiye_news div i{
    color: orange;
}
.footer{
	width: 100%;
	height: 50px;
	line-height: 50px;
	text-align: center;
	font-size: 16px;
	color: #fff;
	position: fixed;
	left: 0;
	bottom: 0;
	right: 0;
}
.footer div{
	width: 70%;
	float: left;
	background-color: #FFA100;
}
.footer .fenxiang{
	width: 30%;
	height: 49px;
	background-color: #fff;
	border-top: 1px solid #F1F1F1;
}
.footer .fenxiang i{
  font-size: 2rem;
  color:#999;
}


/*pic*/
/*.imgList{
    margin: 0 auto;
    width:900px;
    display: flex;
    flex-direction:row;
    flex-wrap:wrap;
}
.imgList img{
    width:300px;
}*/
.imgMask{
    position: absolute;
    height: 160%;
    width:100%;
    top:0;
    left:0;
    z-index: 100;
    background:rgba(0,0,0,.6); 
}
.showImg{
    height: auto;
    width: 80%;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    border: 10px solid #fff;
}
.bigImg{
    width:100%;
    height:100%;
}
.prev{
    position: absolute;
    top:50%;
    left:10px;
    width:40px;
    transform:translate(10px,-50%);
}
.next{
    width:40px;
    transform:translate(10px,-50%);
    position: absolute;
    top:50%;
    right:20px;
}
/*弹框三件套*/
.bg_ground{
    background: rgba(0,0,0,.8);
    width:100%;
    height:100%;
    position: fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index:2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.tan{
    width: 80%;
    height: 40%;
    background: #fff;
}
.tan span.close{
    float: right;
    position: relative;
    right: 16px;
    top: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #ccc;
    z-index: 19999;
}
/* input[type="radio"] + label::before {
    content: "\a0"; 不换行空格
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
    width: 1em;
    height: 1em;
    margin-right: .4em;
    border-radius: 50%;
    border: 1px solid #01cd78;
    text-indent: .15em;
    line-height: 1; 
} */
#oby:checked{
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1px solid #daa55a;
    border-radius: 100%;
    background-color: #f3b968;
    background-clip: content-box;
    padding: .2em;
    float: left;
    margin-right: 0.8rem;
}
.oby{
    margin-top: 4%;
    margin-bottom: 12%;
}
.getorder{
    width: 100%;
    background-color: #FFA100;
    height: 42px;
    text-align: center;
    margin:0 auto;
    color: #fff;
    line-height: 42px;
}
.operate-info-time{
    margin-left: 2%;
}
.orderContent ul li.current{
opacity: 1;
color: #fff;
}
</style>
